package com.pmpd.activity.po;

import java.io.Serializable;

public class ActivityProgress implements Serializable {
    /**
     * 
     * 表字段 : a_activity_progress.id
     */
    private Long id;

    /**
     * 用户id
     * 表字段 : a_activity_progress.user_id
     */
    private Long userId;

    /**
     * 活动id
     * 表字段 : a_activity_progress.activity_id
     */
    private Long activityId;

    /**
     * 任务第几天
     * 表字段 : a_activity_progress.task_day
     */
    private Integer taskDay;

    /**
     * 任务当天的0点时间戳
     * 表字段 : a_activity_progress.task_time
     */
    private Long taskTime;

    /**
     * 跑步距离，单位米
     * 表字段 : a_activity_progress.run_number
     */
    private Integer runNumber;

    /**
     * 睡眠时间 分钟
     * 表字段 : a_activity_progress.sleep_number
     */
    private Integer sleepNumber;

    /**
     * 步数 次
     * 表字段 : a_activity_progress.step_number
     */
    private Integer stepNumber;

    /**
     * 状态: 1 未完成，2 未达标，3 达成
     * 表字段 : a_activity_progress.status
     */
    private Integer status;

    /**
     * 
     * 表字段 : a_activity_progress.create_time
     */
    private Long createTime;

    /**
     * 
     * 表字段 : a_activity_progress.update_time
     */
    private Long updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table a_activity_progress
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table a_activity_progress
     *
     * @mbggenerated
     */
    public ActivityProgress(Long id, Long userId, Long activityId, Integer taskDay, Long taskTime, Integer runNumber, Integer sleepNumber, Integer stepNumber, Integer status, Long createTime, Long updateTime) {
        this.id = id;
        this.userId = userId;
        this.activityId = activityId;
        this.taskDay = taskDay;
        this.taskTime = taskTime;
        this.runNumber = runNumber;
        this.sleepNumber = sleepNumber;
        this.stepNumber = stepNumber;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table a_activity_progress
     *
     * @mbggenerated
     */
    public ActivityProgress() {
        super();
    }

    public ActivityProgress(ActivityProgressTask progressTask) {
        this.id = progressTask.getId();
        this.userId = progressTask.getUserId();
        this.activityId = progressTask.getActivityId();
        this.taskDay = progressTask.getTaskDay();
        this.taskTime = progressTask.getTaskTime();
        this.runNumber = progressTask.getRunNumber();
        this.sleepNumber = progressTask.getSleepNumber();
        this.stepNumber = progressTask.getStepNumber();
        this.status = progressTask.getStatus();
        this.createTime = progressTask.getCreateTime();
        this.updateTime = progressTask.getUpdateTime();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.id
     *
     * @return the value of a_activity_progress.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.id
     *
     * @param id the value for a_activity_progress.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.user_id
     *
     * @return the value of a_activity_progress.user_id
     *
     * @mbggenerated
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.user_id
     *
     * @param userId the value for a_activity_progress.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.activity_id
     *
     * @return the value of a_activity_progress.activity_id
     *
     * @mbggenerated
     */
    public Long getActivityId() {
        return activityId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.activity_id
     *
     * @param activityId the value for a_activity_progress.activity_id
     *
     * @mbggenerated
     */
    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.task_day
     *
     * @return the value of a_activity_progress.task_day
     *
     * @mbggenerated
     */
    public Integer getTaskDay() {
        return taskDay;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.task_day
     *
     * @param taskDay the value for a_activity_progress.task_day
     *
     * @mbggenerated
     */
    public void setTaskDay(Integer taskDay) {
        this.taskDay = taskDay;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.task_time
     *
     * @return the value of a_activity_progress.task_time
     *
     * @mbggenerated
     */
    public Long getTaskTime() {
        return taskTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.task_time
     *
     * @param taskTime the value for a_activity_progress.task_time
     *
     * @mbggenerated
     */
    public void setTaskTime(Long taskTime) {
        this.taskTime = taskTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.run_number
     *
     * @return the value of a_activity_progress.run_number
     *
     * @mbggenerated
     */
    public Integer getRunNumber() {
        return runNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.run_number
     *
     * @param runNumber the value for a_activity_progress.run_number
     *
     * @mbggenerated
     */
    public void setRunNumber(Integer runNumber) {
        this.runNumber = runNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.sleep_number
     *
     * @return the value of a_activity_progress.sleep_number
     *
     * @mbggenerated
     */
    public Integer getSleepNumber() {
        return sleepNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.sleep_number
     *
     * @param sleepNumber the value for a_activity_progress.sleep_number
     *
     * @mbggenerated
     */
    public void setSleepNumber(Integer sleepNumber) {
        this.sleepNumber = sleepNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.step_number
     *
     * @return the value of a_activity_progress.step_number
     *
     * @mbggenerated
     */
    public Integer getStepNumber() {
        return stepNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.step_number
     *
     * @param stepNumber the value for a_activity_progress.step_number
     *
     * @mbggenerated
     */
    public void setStepNumber(Integer stepNumber) {
        this.stepNumber = stepNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.status
     *
     * @return the value of a_activity_progress.status
     *
     * @mbggenerated
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.status
     *
     * @param status the value for a_activity_progress.status
     *
     * @mbggenerated
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.create_time
     *
     * @return the value of a_activity_progress.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.create_time
     *
     * @param createTime the value for a_activity_progress.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column a_activity_progress.update_time
     *
     * @return the value of a_activity_progress.update_time
     *
     * @mbggenerated
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column a_activity_progress.update_time
     *
     * @param updateTime the value for a_activity_progress.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table a_activity_progress
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", activityId=").append(activityId);
        sb.append(", taskDay=").append(taskDay);
        sb.append(", taskTime=").append(taskTime);
        sb.append(", runNumber=").append(runNumber);
        sb.append(", sleepNumber=").append(sleepNumber);
        sb.append(", stepNumber=").append(stepNumber);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}